package com.yunda.crypt.security;

import com.yunda.crypt.security.impl.Codbuz;
import com.yunda.crypt.security.impl.Payoff;
import com.yunda.crypt.security.impl.SignMd5;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Eenie on 2017/8/24.
 * Email: eeniework@gmail.com
 * Des:
 */

public class EncryptionFactory {
    private static Map<String, IEncryption> map = new HashMap();

    static {
        Codbuz var0 = new Codbuz();
        map.put(var0.getName(), var0);
        Payoff var1 = new Payoff();
        map.put(var1.getName(), var1);
        SignMd5 var2 = new SignMd5();
        map.put(var2.getName(), var2);
    }

    public EncryptionFactory() {
    }

    public static IEncryption getEncryption(String var0) {
        return (IEncryption)map.get(var0);
    }
}
